package loggingProject;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import ch.qos.logback.classic.LoggerContext;

public class App {
	
	private static Logger journal = LoggerFactory.getLogger(App.class.getCanonicalName());
	
	public static void main (String[] args){
		journal.info("Demarage de l'application");
		System.out.println("Hello World");
		String config = "config";
		
		journal.debug("Un message de debug");
		journal.warn("Il manque la config {}" ,config );
		
		LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
		loggerContext.stop();
	}

}
